Guild icon
S3Drive
Community / support / Modification date isn't preserved on Android
Avatar
"I use S3Drive 1.7.10 on a phone with Android 12. I created a synchronization task for a folder on the phone (sending from the phone to Baskblaze), "Sync" synchronization mode. The "modification date" is not saved and cannot be restored." Moved from: https://discord.com/channels/1069654792902815845/1069654792902815848/1209424903711752243 (edited)
Tom changed the channel name: Modification date isn't preserved on Android 2/20/2024 9:06 AM
Avatar
Hi @Nitrotoluol, I've moved this as support item / bug report. Thank you for sending these details. Do you get anything in the headers? The last modified field date that we display early on gets directly from S3 and is technically last modified on the remote side, but in fact the real local modification date is stored as: x-amz-meta-mtime header. (edited)
9:12 AM
9:13 AM
Out of curiosity what fancy console is that on Android?
Avatar
It seems I figured it out, x-amz-meta-mtime actually stores the correct modification date, I didn’t pay attention to this field at first. It turns out that if you simply download a separate file from the storage, then it is downloaded without saving the modification date, but if you make a task to synchronize a remote folder with a local one using the Sync mode, then the date is actually restored from x-amz-meta-mtime. I’m very glad that there is an opportunity so quickly with the nuances of synchronization. The console for Android that I use is Termux ( https://f-droid.org/en/packages/com.termux/ )(also available on Google Play) is very helpful when you need to use console commands)
Avatar
It turns out that if you simply download a separate file from the storage, then it is downloaded without saving the modification date,
What would be the expected behavior? If you download file using S3Drive, so it's saved to Downloads folder, do you think it should set last modified date on file according to this header?
(edited)
Avatar
Avatar
Tom
It turns out that if you simply download a separate file from the storage, then it is downloaded without saving the modification date,
What would be the expected behavior? If you download file using S3Drive, so it's saved to Downloads folder, do you think it should set last modified date on file according to this header?
(edited)
There is no obvious answer here. The whole problem here is the use of the "Download folder" in question. It is usually convenient to use this folder when all files are downloaded into it with the current date and time, to make it easier to sort and search for recently downloaded files. But it also happens that you need to download some files with the original date; this is still mostly a backup program. Alternatively, you can, for example, when you click the "Download" button, display a pop-up window with the ability to select a path (where to download) and a checkbox with the option to restore the file modification date, then, if necessary, you could turn it on and select the path where to download. Although, I am very glad that dates and times are restored during synchronization - this was truly important for me. Really very convenient and useful program.
Exported 8 message(s)
Timezone: UTC+0